<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/ajax.js"></script>
</head>

<body>
    <button>测试</button>
    <script>
        const btnObj = document.querySelector("button");
        btnObj.onclick = function () {
            jsonp({
                funcname: 'func10',
                url: 'http://120.78.190.136:8088/spboot/test5',
                data: {
                    name: "lisi",
                    age: 22
                },
                success: function (data) {
                    console.log("执行成功");
                    console.log(data);  //{name: "比屋教育05"}
                }

            })
        }
    </script>
</body>

</html>